#!/bin/bash
export GOROOT="/usr/local/go"
export GO111MODULE=auto
# export GOARCH=amd64
# export GOOS=darwin
export GOSUMDB="sum.golang.org"
export GOPATH="/Users/$(whoami)/go"
export PATH="$PATH:$GOROOT/bin:$GOPATH/bin"
#export GOPROXY=https://goproxy.io,direct
export GOPROXY=https://goproxy.cn,direct
#export GOPROXY=https://mirrors.aliyun.com/goproxy